package com.mes.biz.domain;

import com.mes.common.annotation.Excel;
import com.mes.common.core.domain.BaseEntity;
import com.mes.common.utils.log.annotation.FieldRemark;
import com.mes.common.utils.log.annotation.LogField;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * 工序计划对象 biz_process_plan
 * @author hwg
 * @email hwg
 * @date 2023-05-03
 */
@Data
public class BizProcessPlan extends BaseEntity<BizProcessPlan>
{
    private static final long serialVersionUID = 1L;

    /** 计划编号 */
    @Excel(name = "计划编号")
    @LogField
    @FieldRemark(name = "计划编号",field = "processNumber")
    private String processNumber;

    /**
     * 计划名称
     */
    private String planName;

    /** 租户id */
    private String tenantId;

    private List<BizProductProcessDetail> processList;

    private List<String> productIds;

    public void setProcessNumber(String processNumber)
    {
        this.processNumber = processNumber;
    }

    public String getProcessNumber()
    {
        return processNumber;
    }

    public void setTenantId(String tenantId)
    {
        this.tenantId = tenantId;
    }

    public String getTenantId()
    {
        return tenantId;
    }

    public List<BizProductProcessDetail> getProcessList() {
        return processList;
    }

    public void setProcessList(List<BizProductProcessDetail> processList) {
        this.processList = processList;
    }

    public List<String> getProductIds() {
        return productIds;
    }

    public void setProductIds(List<String> productIds) {
        this.productIds = productIds;
    }

    public String getPlanName() {
        return planName;
    }

    public void setPlanName(String planName) {
        this.planName = planName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("processNumber", getProcessNumber())
            .append("tenantId", getTenantId())
            .append("remark", getRemark())
            .append("id", getId())
            .append("createBy", getCreateBy())
            .append("createDept", getCreateDept())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("updateIp", getUpdateIp())
            .append("version", getVersion())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
